package com.woniuxy.education.service;

import com.woniuxy.education.entity.Article;
import com.woniuxy.education.entity.PageResult;
import com.woniuxy.education.entity.SelectArticle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021/4/2
 */
public interface ArticleService {
     Article findById(int id);
     //分页查询  页码+数量
     PageResult<Article> findArticleByPage(SelectArticle selectArticle);
     //多条件查询
//     PageResult<Article> findByIf(int page,int size,int state, int type, String article_name);
     //插入文章
     boolean addArticle(Article article);
     //更改文章状态(1 ，2，3)
     boolean updateOneState(int id);
     boolean updateTwoState(int id);
     boolean updateThreeState(int id);


}
